package org.golang.godev.editors;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jface.text.rules.IPredicateRule;
import org.eclipse.jface.text.rules.IRule;
import org.eclipse.jface.text.rules.RuleBasedPartitionScanner;

public class GoPartitionScanner extends RuleBasedPartitionScanner {
	
	public final static String GO_COMMENT = "__go_comment" ;
	public final static String GO_C_COMMENT = "__go_c_comment" ;
	public final static String GO_SINGLELINE_STRING = "__go_singleline_string" ;
	public final static String GO_MULTILINE_STRING = "__go_multiline_string" ;
	
	public final static String[] types = { 
			GO_COMMENT, GO_C_COMMENT , GO_SINGLELINE_STRING,GO_MULTILINE_STRING  }  ;
	
	public GoPartitionScanner(ColorManager colorManager) {
		super() ;
		
		List<IRule> rules = new ArrayList<IRule>() ;
		
		
		IPredicateRule[] results = new IPredicateRule[rules.size()] ;
		rules.toArray(results) ;
		setPredicateRules(results) ;
	}
}
